namespace Cik.Gapi4Net.Domain.Output.LocalSearch
{
    using Contract;
    using Core.Json;
    using Newtonsoft.Json;

    [JsonObject]
    public class ViewPort : IViewPort
    {
        [JsonProperty("center")]
        [JsonConverter(typeof(CustomObjectCreationConverter<ICenter, Center>))]
        public ICenter Center { get; set; }

        [JsonProperty("ne")]
        [JsonConverter(typeof(CustomObjectCreationConverter<INe, Ne>))]
        public INe Ne { get; set; }

        [JsonProperty("span")]
        [JsonConverter(typeof(CustomObjectCreationConverter<ISpan, Span>))]
        public ISpan Span { get; set; }

        [JsonProperty("sw")]
        [JsonConverter(typeof(CustomObjectCreationConverter<ISw, Sw>))]
        public ISw Sw { get; set; }
    }
}